From: Juri Linkov Date: Tue, 4 Aug 2009 23:51:32 +0000 (+0000) Subject: Commands to add/delete file/directory-local variables. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11219 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a462895fd6883594623ca7e55a42867dd6aca72d;p=emacs.git Commands to add/delete file/directory-local variables. --- diff --git a/etc/NEWS b/etc/NEWS index b96618f497d..6f7b657c743 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -71,6 +71,20 @@ source while in the midst of loading another file (e.g., with to be corrupted once the outer load completed. Most code doesn't care about this, but some (like c-mode) may check it. +** New command to add a file-local variable to the "Local Variables" list +in the current buffer is `add-file-local-variable'. New command to remove +a file-local variable from the "Local Variables" list is +`delete-file-local-variable'. New commands to add/remove a file-local +variable to/from the -*- line at the beginning of the buffer are +`add-file-local-variable-prop-line' and `delete-file-local-variable-prop-line'. +New commands to add/remove a directory-local variable to/from the +.dir-locals.el file are `add-dir-local-variable' and +`delete-dir-local-variable'. New commands to copy directory-local +variables to file-local variables in the "Local Variables" list or the +-*- line and vice versa are `copy-dir-locals-to-file-locals', +`copy-dir-locals-to-file-locals-prop-line' and +`copy-file-locals-to-dir-locals'. + * Editing Changes in Emacs 23.2